module.exports = {
  classifyResponse: {
    code: { type: 'integer', required: true, example: 200 },
    msg: { type: 'string', example: '请求成功' },
    success: { type: 'integer', required: true, example: 200 },
    data: {
      type: 'array',
      itemType: 'ClassifyDTO',
    },
  },
  ClassifyDTO: {
    _id: { type: 'string', example: '主键' },
    parent: { type: 'string', example: '父级id' },
    classifyName: { type: 'string', example: '分类名称' },
    classifyDescribe: { type: 'string', example: '分类描述' },
    createdTime: { type: 'string' },
    createdBy: { type: 'string' },
    lastUpdateTime: { type: 'string' },
    lastUpdateBy: { type: 'string' },
    children: { type: 'array', itemType: 'ClassifyChildDTO' },
  },
  ClassifyChildDTO: {
    _id: { type: 'string', example: '主键' },
    parent: { type: 'string', example: '父级id' },
    classifyName: { type: 'string', example: '分类名称' },
    classifyDescribe: { type: 'string', example: '分类描述' },
    createdTime: { type: 'string' },
    createdBy: { type: 'string' },
    lastUpdateTime: { type: 'string' },
    lastUpdateBy: { type: 'string' },
    children: { type: 'string', example: [] },
  },
};
